import request from '@/utils/request'

// 查询垃圾站列表
export function listStation(query) {
  return request({
    url: '/ies/station/list',
    method: 'get',
    params: query
  })
}

// 查询垃圾站详细
export function getStation(gId) {
  return request({
    url: '/ies/station/' + gId,
    method: 'get'
  })
}

// 新增垃圾站
export function addStation(data) {
  return request({
    url: '/ies/station',
    method: 'post',
    data: data
  })
}

// 修改垃圾站
export function updateStation(data) {
  return request({
    url: '/ies/station',
    method: 'put',
    data: data
  })
}

// 删除垃圾站
export function delStation(gId) {
  return request({
    url: '/ies/station/' + gId,
    method: 'delete'
  })
}
